package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Message entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tmessage"
    ,catalog="studio"
)

public class Message  implements java.io.Serializable {


    // Fields    

     private Integer messageid;
     private Integer guestid;
     private String guestname;
     private String createdate;
     private String updatedate;
     private String content;


    // Constructors

    /** default constructor */
    public Message() {
    }

	/** minimal constructor */
    public Message(Integer guestid, String guestname, String createdate, String content) {
        this.guestid = guestid;
        this.guestname = guestname;
        this.createdate = createdate;
        this.content = content;
    }
    
    /** full constructor */
    public Message(Integer guestid, String guestname, String createdate, String updatedate, String content) {
        this.guestid = guestid;
        this.guestname = guestname;
        this.createdate = createdate;
        this.updatedate = updatedate;
        this.content = content;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="MESSAGEID", unique=true, nullable=false)

    public Integer getMessageid() {
        return this.messageid;
    }
    
    public void setMessageid(Integer messageid) {
        this.messageid = messageid;
    }
    
    @Column(name="GUESTID", nullable=false)

    public Integer getGuestid() {
        return this.guestid;
    }
    
    public void setGuestid(Integer guestid) {
        this.guestid = guestid;
    }
    
    @Column(name="GUESTNAME", nullable=false, length=30)

    public String getGuestname() {
        return this.guestname;
    }
    
    public void setGuestname(String guestname) {
        this.guestname = guestname;
    }
    
    @Column(name="CREATEDATE", nullable=false, length=14)

    public String getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }
    
    @Column(name="UPDATEDATE", length=14)

    public String getUpdatedate() {
        return this.updatedate;
    }
    
    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }
    
    @Column(name="CONTENT", nullable=false, length=65535)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
   








}